<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">

	<link rel="stylesheet" href="/static/css/reset.css">
	<link rel="stylesheet" href="/static/css/head.css">

	<script src="/static/js/vue.min.js"></script>
	<link rel="stylesheet" href="/static/css/index1.css">
	<script src="/static/js/element-ui/index.js"></script>
	<link rel="stylesheet" href="/static/css/news.css">
	<title>新闻动态</title>
    <style>
		[v-cloak] {
            display: none !important;
        }
    </style>
</head>

<body>
	<div id="app" v-cloak>
		<div class="mask"></div>
		<!-- 导航 -->
		<header class="header">
			<div class="container clearfix">
				<div class="fl left">
					<a href="javascript:void(0)"><img src="/static/picture/logo.png" alt="" class="img1"></a>
				</div>
				<div class="fr nav">
					<img src="/static/icon/menu.png" alt="菜单" class="menuTog" />
					<ul class="navbar_nav" data-in="fadeInDown" data-out="fadeOutUp">
						<li><img src="/static/icon/close.png" alt="关闭" class="closeTog" /></li>
						<li>
							<a href="/index.html">首页</a>
						</li>
						<li class="dropdown">
							<a href="/pro.html">
								产品服务
							</a>
						</li>
						<li class="dropdown">
							<a href="/science.html">普联科技</a>
						</li>
						<li class="header-active">
							<a href="/news.html">新闻动态</a>
						</li>
						<li>
							<a href="/help.html">帮助与支持</a>
						</li>
						<li>
							<a href="/about.html">关于我们</a>
						</li>
					</ul>
				</div>
				<a href="javascript:void(0)" id="navToggle">
					<span></span>
				</a>
			</div>
		</header>
		<div class="banner">
			<img src="/static/picture/xinwen-bgc_01.png" alt="">
		</div>


		<!-- 内容  -->
		<div class="content-wrapper">
			<div class="news-container">
				<div class="news-left">
					<ul>
						<li class="news-title-li active" onclick="javascript:window.location.href='/news.html';">
                            <div class="inline">
                                <div class="gang"></div>
                                <div class="left-title">公司动态</div>
                            </div>
							<p><i class="right"></i></p>
						</li>
						<li class="news-title-li" onclick="javascript:window.location.href='/information.html';">
                            <div class="inline">
                                <div class="gang"></div>
                                <div class="left-title">行业资讯</div>
                            </div>
							<p><i class="right"></i></p>
						</li>
					</ul>
				</div>
				<div class="news-right">
					<div class="r-world">
						<h4>公司动态</h4>
						<div class="r-gang"></div>
						<ul class="content-ul">
                			<li class="title-li" v-for="(item,index) in table.tableData" :key="index">
								<div class="title-left">
									<a :href="item.url"><span>{{item.title}}</span> </a></div>
								<div class="time">{{item.time}}</div>
							</li>
						</ul>
						<el-pagination class='page' background="" @current-change="currentChangeHandle"
							:current-page="table.currentPage" :page-size="table.pageSize"
							layout="prev, pager, next,jumper" :total="table.rowCount"></el-pagination>
					</div>
				</div>
			</div>
		</div>

		<div class="common-footer">
			<div class="footer_lxwm">
				<ul class="wbsx">
					<li><img src="/static/picture/footer_wb.png">
						<p>企业微博</p>
					</li>
					<li><img src="/static/picture/footer_gzh.png">
						<p>企业公众号</p>
					</li>
					<li><img src="/static/picture/footer_dy.png">
						<p>抖音二维码</p>
					</li>
				</ul>
				<a href="/about.html">CONTACT US</a>

			</div>
			<div class="lxfs_box">
                <span class="sb_1"><img src="/static/picture/footer_icon_dianhua.png">电话：${commonData.tel}</span>
                <span class="sb_1"><img src="/static/picture/footer_icon_mail.png">邮箱：${commonData.email}</span>
                <span class="sb_1"><img src="/static/picture/footer_icon_dizhi.png">地址：${commonData.address}</span>
                <p>
                    <span>
                        <img src="/static/picture/footer_icon_banquan.png"/>版权所有 2018-2020 武汉普联东文数据服务有限责任公司 · 鄂ICP备17023599号-2
                    </span>
                    <span>
                        <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42010302002204">
                            <img src="/static/image/110.png" />鄂公网安备 42010302002204号
                        </a>
                    </span>
                </p>

			</div>
		</div>

	</div>
</body>
<script src="/static/js/jquery.min.js"></script>
<script>
    var vw = document.body.clientWidth;
    var pc = 10;
    if (vw < 600) {
        pc = 4;
    }
	var app = new Vue({
		el: '#app',
		data: {
			table: {
				tableData: [],
				currentPage: 1,
				pageSize: 10,
                pageCount: pc,
				rowCount: 0
			},

		},
		mounted: function() {

			this.getTableData();
		},
		methods: {



			//翻页
			currentChangeHandle: function(currentPage) {
				this.table.currentPage = currentPage;
				console.log(currentPage);
				this.getTableData();
			},
			getTableData: function() {
				var p = {};
				var _url = '/webApi/newsList1';
				p.start = (this.table.currentPage - 1) * this.table.pageSize;
				p.num = this.table.pageSize;
				p.newsType = 1;
				var that = this;
				// console.log(p);
				$.ajax({
					type: 'POST',
					url: _url,
					data: p,
					success: function (res) {
						console.log(res);
						that.table.tableData = res.data.rows;
						that.table.rowCount = res.data.total;
						console.log(that.table.tableData);
					}
				});
			}		
		}	
	})
</script>
<script src="/static/js/news.js"></script>
</html>